from rest_framework import serializers
from .models import TechInsight, InsightReference

class TechInsightSerializer(serializers.ModelSerializer):
    class Meta:
        model = TechInsight
        fields = '__all__'

class TechInsightCreateSerializer(serializers.ModelSerializer):
    class Meta:
        model = TechInsight
        fields = ['industry', 'keyword']

class TechInsightListSerializer(serializers.ModelSerializer):
    class Meta:
        model = TechInsight
        fields = ['id', 'title', 'industry', 'keyword', 'created_at']
